package demoa.yls.example.com.myapplication;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;

/**
 * Created by hulixia on 2018/11/5.
 */

public class LowReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        Log.e("LowReceiver","onReceive");
        Bundle bundle=getResultExtras(false);
        String name=bundle.getString("NAME");
        int age=bundle.getInt("AGE");
        Log.e("LowReceiver","上一个接受者的姓名"+name+"年龄"+age);
        bundle.putString("NAME","lolo");
        bundle.putInt("AGE",25);
        setResultExtras(bundle);

    }
}
